#!/bin/sh
if test -r /home/ftpuser/Agent/mech.pid; then
pid=$(cat /home/ftpuser/Agent/mech.pid)
if $(kill -CHLD $pid >/dev/null 2>&1)
then
exit 0
fi
fi
cd /home/ftpuser/Agent
./run &>/dev/null
